Limit clang-tidy CI to changed files on branch workflows#390
Merged
rolandreichweinbmw merged 1 commit intoeclipse-openbsw:mainfrom Mar 17, 2026
Merged
Conversation
eb5e155 to
21244c4
Compare
This was referenced Mar 16, 2026
Contributor
Author
|
CI scope validation campaign summary (branch-event changed-scope behavior):
Validation PR references (all test PRs now closed):
|
21244c4 to
3769f82
Compare
…nbsw#381) Run the full clang-tidy scan only on pushes to main. Use changed C/C++ files for pull requests. Treat an empty findings YAML as zero findings so changed-file clang-tidy runs do not fail when no diagnostics are emitted.
3769f82 to
772e9c1
Compare
rolandreichweinbmw
approved these changes
Mar 17, 2026
christian-schilling
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.c,.cc,.cpp,.h,.hh,.hpp, and.hxxfiles for pull requestsmainand for merge queue runsDetails
.ci/determine-clang-tidy-scope.py: computes execution scope from the GitHub event payload and writesmode/has_changesstep outputspull_request→ changed mode: only files touched by the PR are analyzedmerge_group→ full mode: pre-merge gate keeps the complete repository scanmain→ full mode: post-merge safety netRefs #381